const router = require('koa-router')()
const associationsController = require('../controllers/association')

router.prefix('/associations')

// 协会列表
router.get('/associationlist', associationsController.associationlist)

// 编辑协会
router.get('/edit', associationsController.edit)
router.post('/doEdit', associationsController.doEdit)

// 修改协会状态
router.get('/frozen', associationsController.frozen)
router.post('/doFrozen', associationsController.doFrozen)

// 查看协会详情detail
router.get('/detail', associationsController.detail)
router.post('/doDetail', associationsController.doDetail)

router.get('/auditlist', associationsController.auditlist)


module.exports = router